/**
 * 
 */
package com.byzk.p2p.admin.user.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.byzk.p2p.admin.base.util.PageInfo;
import com.byzk.p2p.admin.user.dao.InviteRefDao;
import com.byzk.p2p.admin.user.vo.InviteRefVo;

/*** <p>Title:InviteInfoService </p>
* <p>Description: </p>
* <p>Company:xbd </p>
* @author:lilei
* @date:2016年9月14日上午10:45:12 */
@Service
public class InviteInfoService {

	@Autowired
	private InviteRefDao inviteRefDao;
	/**
	 * 
	* <p>Description:查询客户邀请明细信息</p>
	* <p>Company:xbd </p>
	* @author:lilei
	* @date:2016年9月14日上午10:50:31
	 */
	public   PageInfo<InviteRefVo> ListInviteInfo(InviteRefVo inviet){
	    int count = inviteRefDao.count(inviet.getPid());
	    List<InviteRefVo> inviteList=inviteRefDao.getInviteRefInfoByPid(inviet);
	    PageInfo<InviteRefVo> page = new PageInfo<InviteRefVo>(count, inviet.getIndex(), inviet.getLimit());
	    page.setPageList(inviteList);
		return page;
	}
	
	
	
	
}
